package pl.msikora.android.lapmagic.view;

import com.actionbarsherlock.app.SherlockActivity;
import pl.msikora.android.lapmagic.R;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

// TODO Point names must be unique in a track! - database constraint done

// TODO Improve finding current location while creating new track

// TODO provide a help message - an icon in main screen

// TODO wrap database into content provider and use loader with the track list

/**
 * Main application view.
 * 
 * @author Maciej Sikora
 * 
 */
public class MainActivity extends SherlockActivity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		getSupportActionBar().show();
	}
		
	public void showTracks(View view) {
		Intent intent = new Intent(this, TracksActivity.class);
		startActivity(intent);
	}
	
	public void showSessions(View view) {
		Intent intent = new Intent(this, SessionsActivity.class);
		startActivity(intent);
	}
	
	public void startSession(View view) {
		Intent intent = new Intent(this, PrepareSessionActivity.class);
		startActivity(intent);
	}

}
